<?php $this->extend('comm/page');?>


<form class="layui-form form-horizontal" action="<?php echo $container->url->build('', ['idx' => $data['id']]); ?>" method="post">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">父级:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_select('pid', $rule, [$data['pid']]);?>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">路由规则:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="name" lay-verify="required" lay-verType="tips" lay-reqText="请输入路由规则"
                placeholder="请输入路由规则" class="layui-input" value="<?php echo $data['name']; ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权限名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" name="title" lay-verify="required" lay-verType="tips" lay-reqText="请输入权限名称"
                autocomplete="off" placeholder="请输入权限名称" class="layui-input" value="<?php echo $data['title']; ?>">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">备注:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea class="layui-textarea" name="remark" placeholder="路由规则备注信息"><?php echo $data['remark']; ?></textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">状态:</label>
        <div class="col-xs-12 col-sm-8">
            <?php echo $this->build_radios('status', ['1'=>'有效', '2'=>'无效'], $data['status'], [], true); ?>
        </div>
    </div>
    <div class="layui-form-item hidden layer-footer">
        <div class="col-xs-12 text-right">
            <button type="submit" class="btn btn-success" lay-submit lay-filter="edit">立即提交</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</form>
